<?php
/**
 * Date: 2024.8
 * Author: kahn
 * 默认入口
 */

use config\Response;
use service\uc\JwtService;

class IndexController extends Controller
{
    public function indexAction()
    {
        header('Content-type: text/html; charset=utf-8');
        echo file_get_contents("now.html");
    }

    public function jwtAction(){
        $userId = $this->_getParam('userId','intval', false, 108);
        $a = 'jenkins rebuild 8';
        $jwt = JwtService::generateJWT($userId);


        $this->_response(Response::SUCCESS, ['token'=>$jwt]);

    }


}

